﻿using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Himall.Entity.Config
{
   public class CapitalDetailInfoConfig : EntityTypeConfiguration<CapitalDetailInfo>
    {
        public CapitalDetailInfoConfig()
        {
            ToTable("Himall_CapitalDetail");
            Property(item => item.Remark).HasColumnType("varchar").HasMaxLength(255);
            Property(item => item.SourceData).HasColumnType("varchar").HasMaxLength(100);
          
            HasRequired(x => x.Himall_Capital).WithMany(x => x.Himall_CapitalDetail).HasForeignKey(x => x.CapitalID);
        }
    }
}
